<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div class='filtered'></div>
    <div class='filtered' attr='1' style='display: none'>loren ipsum</div>
    <div class='filtered' attr='2' style='display: none'>loren ipsum</div>
    <div class='filtered' attr='3'>loren ipsum</div>
    <div class='filtered'>loren ipsum</div>
    <div class='filtered'>loren bipsum</div>
    <div class='not-filtered'></div>
    <div class="parent">
        <div>
            <div>1</div>
        </div>
        <span>2</span>
        <div>3</div>
    </div>
</body>
</html>